package com.define.ssh.model;

import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * Terminal entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "terminal", uniqueConstraints = {})
public class Terminal implements java.io.Serializable {

	// Fields

	private Long netid;
	private String netType;
	private String termtype;
	private String majorflag;
	private String serverip;
	private Integer serverport;
	private Date updateTime;
	private Integer maxConnect;
	private Integer updatetype;
	private String name;
	private String version; 
	private String description;

	// Constructors

	/** default constructor */
	public Terminal() {
	}



	@Id
	@Column(name = "netid", unique = true, nullable = false, insertable = true, updatable = true)
	public Long getNetid() {
		return netid;
	}

	public void setNetid(Long netid) {
		this.netid = netid;
	}



	@Column(name = "net_type", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getNetType() {
		return this.netType;
	}

	public void setNetType(String netType) {
		this.netType = netType;
	}

	@Column(name = "termtype", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getTermtype() {
		return this.termtype;
	}

	public void setTermtype(String termtype) {
		this.termtype = termtype;
	}

	@Column(name = "majorflag", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getMajorflag() {
		return this.majorflag;
	}

	public void setMajorflag(String majorflag) {
		this.majorflag = majorflag;
	}

	@Column(name = "serverip", unique = false, nullable = false, insertable = true, updatable = true, length = 20)
	public String getServerip() {
		return this.serverip;
	}

	public void setServerip(String serverip) {
		this.serverip = serverip;
	}

	@Column(name = "serverport", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getServerport() {
		return this.serverport;
	}

	public void setServerport(Integer serverport) {
		this.serverport = serverport;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "update_time", unique = false, nullable = false, insertable = true, updatable = true, length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "max_connect", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getMaxConnect() {
		return this.maxConnect;
	}

	public void setMaxConnect(Integer maxConnect) {
		this.maxConnect = maxConnect;
	}

	@Column(name = "updatetype", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getUpdatetype() {
		return this.updatetype;
	}

	public void setUpdatetype(Integer updatetype) {
		this.updatetype = updatetype;
	}

	@Column(name = "name", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "version", unique = false, nullable = true, insertable = true, updatable = true, length = 20)
	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	@Column(name = "description", unique = false, nullable = true, insertable = true, updatable = true)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}